# +----------------------------------------------------------------------
# | Pink [ A modern python web framework ]
# +----------------------------------------------------------------------
# | Copyright (c) 2023 http:#unnnnn.com All rights reserved.
# +----------------------------------------------------------------------
# | Author: chenjianhua <unnnnn@foxmail.com>
# +----------------------------------------------------------------------

from src.pink.pinkorm.connections import ConnectionResolver

DATABASES = {
    "default": "mysql",
    "mysql": {
        "driver": "mysql",
        "host": "43.137.7.80",
        "user": "pinkpyAdmin",
        "password": "f88iNk7a3tGxzBwG",
        "database": "pinkpyAdmin",
        "port": 3306,
        "prefix": "",
        "options": {
            "charset": "utf8mb4",
        },
        "log_queries": True,
    },
}

DB = ConnectionResolver().set_connection_details(DATABASES)
